package com.eastedu.util;

/**
 * The type Sql helper.
 * @author zhangzhishuai
 */
public class SqlHelper {

    public static String generateCountQuery(String originalQuery) {
        String processedQuery = originalQuery.replace(";", "");
        return "SELECT COUNT(*) AS count FROM (" + processedQuery + ") a";
    }

}